//
//  DataBindModel.m
//  DataBind
//
//  Created by Super on 2019/12/16.
//  Copyright © 2019 Super. All rights reserved.
//

#import "DataBindModel.h"

@implementation DataBindModel

- (void)bindKey:(NSString *)key observer:(id)observer {
    [self addObserver:observer forKeyPath:key options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:nil];
}

- (void)unbindKey:(NSString *)key observer:(id)observer {
    [self removeObserver:observer forKeyPath:key];
}

@end
